import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';

class Search extends StatelessWidget {
  const Search({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      height: 34,
      child: TextField(
        textAlign: TextAlign.center,
        autofocus: false,
        decoration: const InputDecoration(
          contentPadding: EdgeInsets.zero,
          hintText: '搜索',
          border: OutlineInputBorder(borderSide: BorderSide.none),
          filled: true,
          fillColor: Colors.white,
          hintStyle: TextStyle(color: Color(0xffb3b3b3), fontSize: 15),
        ),
      ),
    );
  }
}
